﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/teleweb/common/global.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中国通信服务</title>
<link href="teleweb/css/ztf.css" rel="stylesheet" type="text/css" />
<link href="teleweb/css/roll.css" rel="stylesheet" type="text/css" />
<link href="teleweb/css/content.css" rel="stylesheet" type="text/css" />
<script src="teleweb/js/gotoPage.js" type="text/javascript"></script>
</head>
<body>

<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <!-- 主体table -->
  <%request.setAttribute("panel","WN");%>
  <%@ include file="/teleweb/common/include/header.jsp" %>
        
  <tr>
    <!---首页内容--->
    <td class="new_indexcontent">
    <div class="new_stars">
    <div class="new_weizhi">你现在所在的位置：<a href="${ctx}/index">首页</a>><a href="${ctx}/listWorkNews.action">工作动态</a></div>
    </div>
    <!---圆角--->
    <div class="box-cir3">
			<div class="t_l"></div>
			<div class="t_m"></div>
			<div class="t_r"></div>
			<div class="m_l"></div>
			<div class="m_m1">
    <!---标题内容--->
			<div class="new_heading1">
            <h3>工作动态</h3>
            <user:manager>
	            <div class="new_publisha"> 
	            	<button onclick="window.location.href='${ctx}/worknews-edit.action'">发布</button></div>
	            </div>
            </user:manager>
            <table class="new_neirong" cellpadding="0" cellspacing="0">
            <tr>
            <th width="600">文档名称
            </th>
            <th width="120px" style="text-align:left;padding-left:10px;">上传日期
            </th>
            <user:manager>
	            <th width="120px" style="text-align:left;padding-left:10px;">&nbsp;
	            </th>
            </user:manager>
            </tr>
            
            <c:if test="${!empty wn.resultList}">
				<c:forEach items="${wn.resultList}" var="ks" varStatus="statusWN">
					<tr>
						<td class="new_tablepoint" width="600">
							<a title="${ks.title}" href="${ctx}/detailWorkNews.action?pageSize=1&id=${ks.id}&worknews_pager.offset=${statusWN.index+offset}">${fn:substring(ks.title, 0, 40)}</a>
						</td>
	            		<td>${fn:substring(ks.publishDate, 0, 16)}&nbsp;</td>
	            		<user:manager>
	            			<td><div class="new_btpublish">
	            				<a href="${ctx}/worknews-edit.action?id=${ks.id}">编辑</a> 
	            				<a onclick="return confirm('确定删除吗？');" href="${ctx}/worknews-delete.action?id=${ks.id}">删除</a>
	            				</div>
	            			</td>
	            		</user:manager>
	            	</tr>
			    </c:forEach>
			</c:if>

            </table>

            <div class="new_pages">
	              <!-- 插入分页导航条 -->
	            <pg:pager id="worknews_pager" url="listWorkNews.action" maxPageItems="${wn.perPageRecordNum}" items="${wn.recordSum}" export="currentPageNumber=pageNumber">
					<pg:param name="pageSize" value="10"/>
					<pg:first>
						<a href="${pageUrl}">[ 首页]</a>|
					</pg:first>
					<pg:prev ifnull="true">
						<% if (pageUrl != null) { %>   
	        				<a HREF="<%=pageUrl%>">上一页</a>|
	      				<% } else { %>   
	        				&nbsp;上一页  |   
	      				<% } %>   
					</pg:prev>
					<pg:next ifnull="true">
						<% if (pageUrl != null) { %>   
	        				<a HREF="<%=pageUrl%>">下一页</a>|
	      				<% } else { %>   
	        				&nbsp;下一页  |   
	      				<% } %> 
					</pg:next>
					<pg:last>
						<a href="${pageUrl}">[ 末页]</a>
						第<span class="new_point"><%=currentPageNumber%>/<%=pageNumber%></span>页 
						每页${wn.perPageRecordNum}条 共<%=pageNumber%>页 
						到第<input type="text" name="pageNo" id="pageNo"><span class="new_pagesbg" onclick="gotoPage(${wn.recordSum},${wn.perPageRecordNum},'listWorkNews','worknews_pager')">页</span>
					</pg:last>
				</pg:pager>
             </div>
            
            
			</div>
			<div class="m_r"></div>
			<div class="b_l"></div>
			<div class="b_m"></div>
			<div class="b_r"></div>
		</div>
    </td>
  </tr>
  <%@ include file="common/include/tail.jsp"%>
</table>
</body>
</html>
